package com.ssm.auth.domain.service;

import com.ssm.auth.domain.bo.AuthPermissionBO;
import com.sun.org.apache.xpath.internal.operations.Bool;

import java.util.List;

public interface AuthPermissionDomainService {
    /**
     * 新增权限
     * @param authPermissionBO
     * @return
     */
    Boolean add(AuthPermissionBO authPermissionBO);

    /**
     * 更新权限
     * @param authPermissionBO
     * @return
     */
    Boolean update(AuthPermissionBO authPermissionBO);

    /**
     * 删除权限
     * @param authPermissionBO
     * @return
     */
    Boolean delete(AuthPermissionBO authPermissionBO);

    /**
     * 查询用户权限
     * @param userName
     * @return
     */
    List<String> getPermission(String userName);
}
